package com.zjs.utils;

/**
 * 描述
 *
 * @author zhu_jinsheng
 * @version 1.0
 * @date 2020/9/22 20:34
 */
public class NumberUtil {
    public static Integer generateInt(int start, int end) {
        return (int)(start+Math.random()*(end - start + 1));
    }

    public static Double generateDouble(double start, double end) {
        return start+Math.random()*(end - start + 1);
    }
}
